<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<% 
    String username=request.getParameter("username");
    String password=request.getParameter("password");    
    if(username.equals("wustzz")&&password.equals("123456")){
    	out.print("登录成功，欢迎"+username);
    	session.setAttribute("username",username);
   		out.print("</br><a href='example2_2_2b.jsp'>example2_2_2b.jsp页面</a>");
    	out.print("</br><a href='example2_2_2.jsp'>注销</a>");    
    }
    else{
    	out.print("用户名或密码不正确,3秒钟之后重新登录");
     	response.setHeader("refresh","3;url='example2_2_2.jsp'") ; 
    }       
%>



